<template>
  <div class="empty-container">
    <template v-if="isEmpty">
      <slot name="listCon"></slot>
    </template>
    <template v-else>
      <van-empty class="custom-image">
        <template #image>
          <img src="../../assets/images/custom-empty-image.png" alt="" />
        </template>
      </van-empty>
    </template>
  </div>
</template>

<script>
export default {
  name: "EmptyIndex",
  props: ["isEmpty"],
};
</script>